import service from "@/utils/fetch";
const post = {
  //查询原因分页
  reasonList(params) {
    return service({
      method: "get",
      params,
      url: "/api/reason/",
    });
  },
  //新增原因
  addReason(params) {
    return service({
      method: "post",
      data: params,
      url: "/api/reason/",
    });
  },

  // 修改原因管理
  editReason(params) {
    return service({
      method: "put",
      data: params,
      url: "/api/reason/",
    });
  },

  // 删除原因管理
  deleteReason(ids) {
    return service({
      method: "delete",
      data: ids,
      url: "/api/reason/",
    });
  },
};

export default post;
